package com.xyd.Biz.Impl;

import com.xyd.Biz.TodaySpecialsBiz;
import com.xyd.Dao.TodaySpecialsDao;
import com.xyd.Entity.Commodity;
import com.xyd.Util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class TodaySpecialsBizImpl implements TodaySpecialsBiz {
    TodaySpecialsDao todaySpecials = null;
    SqlSession session = null;

    public TodaySpecialsBizImpl() {
        session = SqlSessionFactoryUtil.open();
        todaySpecials = session.getMapper(TodaySpecialsDao.class);
    }

    @Override
    public List<Commodity> SearchTodaySpecials() {
        return todaySpecials.SearchTodaySpecials();
    }
}
